package com.library.university.Service;


import com.library.university.mapper.UniversityMapper;
import com.library.university.pojo.University;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UniversityServicelmpl implements UniversityService{
    @Autowired
    UniversityMapper universityMapper;

    @Override
    public List<University> selectUniversity() {
        return universityMapper.selectUniversity();
    }

    @Override
    public int addUniversity(University university) {
        return universityMapper.addUniversity(university);
    }

    @Override
    public int updateUniversity(University university) {
        return universityMapper.updateUniversity(university);
    }

    @Override
    public int deleteUniversity(int id) {
        return universityMapper.deleteUniversity(id);
    }
}
